Carbon


PBAllocateForkSync

Header: Files.h Carbon status: Supported

Attempts to reserve space on a volume for use by an open fork.

OSErr PBAllocateForkSync (
    FSForkIOParam *paramBlock
);
paramBlock

A pointer to a parameter block

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

This call will attempt to allocate the number of requested bytes of physical storage starting at the offset specified by positionMode and positionOffset. For volume formats that support preallocated space, you can later write to this range of bytes (including extending the size of the fork) without requiring an implicit allocation.

Any extra space allocated but not used will be deallocated when the fork is closed, using FSCloseFork, or flushed, using FSFlushFork.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)